package org.car.world.service.impl;

import java.util.List;

import org.car.world.core.entily.LogTable;
import org.car.world.core.mapper.LogTableMapper;
import org.car.world.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = {RuntimeException.class, Exception.class})
public class LogServiceImpl implements LogService {

    @Autowired
    LogTableMapper logTableMapper;

    @Override
    public int deleteByPrimaryKey(Integer logId) {
        return logTableMapper.deleteByPrimaryKey(logId);
    }

    @Override
    public int insert(LogTable record) {
        return logTableMapper.insert(record);
    }

    @Override
    public LogTable selectByPrimaryKey(Integer logId) {
        return logTableMapper.selectByPrimaryKey(logId);
    }

    @Override
    public List<LogTable> selectAll() {
        return logTableMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(LogTable record) {
        return logTableMapper.updateByPrimaryKey(record);
    }

}
